<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>TFSegmentView Class Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">TFFoundation </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">“Timeface”</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	
	<option value="overview">Overview</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	
	<optgroup label="Properties">
		
		<option value="//api/name/collectionView">collectionView</option>
		
		<option value="//api/name/customDecorateViewFrameBlock">customDecorateViewFrameBlock</option>
		
		<option value="//api/name/customItemCellForItemBlock">customItemCellForItemBlock</option>
		
		<option value="//api/name/decorateView">decorateView</option>
		
		<option value="//api/name/itemCellDidDeselectBlock">itemCellDidDeselectBlock</option>
		
		<option value="//api/name/itemCellDidSelectBlock">itemCellDidSelectBlock</option>
		
		<option value="//api/name/itemCellReloadBlock">itemCellReloadBlock</option>
		
		<option value="//api/name/itemFont">itemFont</option>
		
		<option value="//api/name/itemLeading">itemLeading</option>
		
		<option value="//api/name/itemShowLeading">itemShowLeading</option>
		
		<option value="//api/name/itemShowSpace">itemShowSpace</option>
		
		<option value="//api/name/itemShowTrailing">itemShowTrailing</option>
		
		<option value="//api/name/itemSpace">itemSpace</option>
		
		<option value="//api/name/itemTrailing">itemTrailing</option>
		
		<option value="//api/name/itemsArray">itemsArray</option>
		
		<option value="//api/name/registerCustomItemCellBlock">registerCustomItemCellBlock</option>
		
		<option value="//api/name/selectedItemIndex">selectedItemIndex</option>
		
	</optgroup>
	

	

	
	<optgroup label="Instance Methods">
		
		<option value="//api/name/decorateViewFrameForIndex:withPercent:animationDurationBlock:">- decorateViewFrameForIndex:withPercent:animationDurationBlock:</option>
		
		<option value="//api/name/initWithFrame:itemsArray:">- initWithFrame:itemsArray:</option>
		
		<option value="//api/name/layoutItems">- layoutItems</option>
		
		<option value="//api/name/selectItemAtIndex:animated:">- selectItemAtIndex:animated:</option>
		
		<option value="//api/name/selectItemAtIndex:withPercent:">- selectItemAtIndex:withPercent:</option>
		
	</optgroup>
	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">TFSegmentView Class Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Inherits from</th>
	<td>UIView</td>
</tr><tr>
	<th>Declared in</th>
	<td>TFSegmentView.h<br />TFSegmentView.m</td>
</tr>
						</tbody></table></div>
					

                    
					
					<div class="section section-overview">
						<a title="Overview" name="overview"></a>
						<h2 class="subtitle subtitle-overview">Overview</h2>
						<p>TFSegmentView,分割view</p>
					</div>
					
					

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/initWithFrame:itemsArray:" title="initWithFrame:itemsArray:"></a>
	<h3 class="method-title"><code><a href="#//api/name/initWithFrame:itemsArray:">&ndash;&nbsp;initWithFrame:itemsArray:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>初始化方法</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull instancetype)initWithFrame:(CGRect)<em>frame</em> itemsArray:(nonnull NSArray&lt;NSString*&gt; *)<em>itemsArray</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>frame</code></th>
						<td><p>frame</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>itemsArray</code></th>
						<td><p>item字符串数组</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>TFSegmentView</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>初始化方法</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/collectionView" title="collectionView"></a>
	<h3 class="method-title"><code><a href="#//api/name/collectionView">&nbsp;&nbsp;collectionView</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>collectionView</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, strong, nonnull) UICollectionView *collectionView</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>collectionView</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/itemFont" title="itemFont"></a>
	<h3 class="method-title"><code><a href="#//api/name/itemFont">&nbsp;&nbsp;itemFont</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>item 字体大小，默认14</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, strong, nonnull) UIFont *itemFont</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>item 字体大小，默认14</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/itemsArray" title="itemsArray"></a>
	<h3 class="method-title"><code><a href="#//api/name/itemsArray">&nbsp;&nbsp;itemsArray</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>item字符串数组</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, strong, nonnull) NSArray&lt;NSString*&gt; *itemsArray</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>item字符串数组</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/selectedItemIndex" title="selectedItemIndex"></a>
	<h3 class="method-title"><code><a href="#//api/name/selectedItemIndex">&nbsp;&nbsp;selectedItemIndex</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>当前选中的item的索引</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) NSInteger selectedItemIndex</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>当前选中的item的索引</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/decorateView" title="decorateView"></a>
	<h3 class="method-title"><code><a href="#//api/name/decorateView">&nbsp;&nbsp;decorateView</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>修饰view，可以是一条线，也可以是一个背景等等，默认为一条高度为2pt，宽度和item宽度相同的线</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, strong, nonnull) UIView *decorateView</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>修饰view，可以是一条线，也可以是一个背景等等，默认为一条高度为2pt，宽度和item宽度相同的线</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/registerCustomItemCellBlock" title="registerCustomItemCellBlock"></a>
	<h3 class="method-title"><code><a href="#//api/name/registerCustomItemCellBlock">&nbsp;&nbsp;registerCustomItemCellBlock</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>注册自定义cell，需为UICollectionViewCell服从TFSegmentViewItemCellProtocol，若实现此block，则不会注册默认cell&ndash;<a href="../Classes/TFSegmentViewItemCell.html">TFSegmentViewItemCell</a></p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, copy, nullable) void ( ^ ) ( UICollectionView *__nonnull collectionView ) registerCustomItemCellBlock</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>注册自定义cell，需为UICollectionViewCell服从TFSegmentViewItemCellProtocol，若实现此block，则不会注册默认cell&ndash;<a href="../Classes/TFSegmentViewItemCell.html">TFSegmentViewItemCell</a></p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/customItemCellForItemBlock" title="customItemCellForItemBlock"></a>
	<h3 class="method-title"><code><a href="#//api/name/customItemCellForItemBlock">&nbsp;&nbsp;customItemCellForItemBlock</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>返回自定义的cell，需要先通过registerCustomItemCellBlock注册才可以</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, copy, nullable) __kindof UICollectionViewCell&lt;TFSegmentViewItemCellProtocol&gt; *( ^ ) ( UICollectionView *__nonnull collectionView , NSString *__nonnull item , NSInteger index ) customItemCellForItemBlock</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>返回自定义的cell，需要先通过registerCustomItemCellBlock注册才可以</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/itemCellReloadBlock" title="itemCellReloadBlock"></a>
	<h3 class="method-title"><code><a href="#//api/name/itemCellReloadBlock">&nbsp;&nbsp;itemCellReloadBlock</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>当cell reload的时候调用</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, copy, nullable) void ( ^ ) ( __kindof UICollectionViewCell&lt;TFSegmentViewItemCellProtocol&gt; *__nonnull cell , NSString *__nonnull item , NSInteger index ) itemCellReloadBlock</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>当cell reload的时候调用</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/itemCellDidSelectBlock" title="itemCellDidSelectBlock"></a>
	<h3 class="method-title"><code><a href="#//api/name/itemCellDidSelectBlock">&nbsp;&nbsp;itemCellDidSelectBlock</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>选中某个cell时调用</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, copy, nullable) void ( ^ ) ( __kindof UICollectionViewCell&lt;TFSegmentViewItemCellProtocol&gt; *__nonnull cell , NSString *__nonnull item , NSInteger index ) itemCellDidSelectBlock</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>选中某个cell时调用</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/itemCellDidDeselectBlock" title="itemCellDidDeselectBlock"></a>
	<h3 class="method-title"><code><a href="#//api/name/itemCellDidDeselectBlock">&nbsp;&nbsp;itemCellDidDeselectBlock</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>取消选中某个cell时调用</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, copy, nullable) void ( ^ ) ( __kindof UICollectionViewCell&lt;TFSegmentViewItemCellProtocol&gt; *__nonnull cell , NSString *__nonnull item , NSInteger index ) itemCellDidDeselectBlock</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>取消选中某个cell时调用</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/customDecorateViewFrameBlock" title="customDecorateViewFrameBlock"></a>
	<h3 class="method-title"><code><a href="#//api/name/customDecorateViewFrameBlock">&nbsp;&nbsp;customDecorateViewFrameBlock</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>返回自定义的装饰view的frame</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, copy, nullable) CGRect ( ^ ) ( UIView *__nonnull decorateView , CGRect itemCellFrame , NSInteger index , CGFloat percent ) customDecorateViewFrameBlock</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>返回自定义的装饰view的frame</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/itemSpace" title="itemSpace"></a>
	<h3 class="method-title"><code><a href="#//api/name/itemSpace">&nbsp;&nbsp;itemSpace</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>每个item间的space，默认20.0</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) CGFloat itemSpace</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>每个item间的space，默认20.0</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/itemLeading" title="itemLeading"></a>
	<h3 class="method-title"><code><a href="#//api/name/itemLeading">&nbsp;&nbsp;itemLeading</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>item最左边的间距，默认20.0</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) CGFloat itemLeading</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>item最左边的间距，默认20.0</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/itemTrailing" title="itemTrailing"></a>
	<h3 class="method-title"><code><a href="#//api/name/itemTrailing">&nbsp;&nbsp;itemTrailing</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>item最右边的间距，默认20.0</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) CGFloat itemTrailing</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>item最右边的间距，默认20.0</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/itemShowSpace" title="itemShowSpace"></a>
	<h3 class="method-title"><code><a href="#//api/name/itemShowSpace">&nbsp;&nbsp;itemShowSpace</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>真正显示的space</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, assign, readonly) CGFloat itemShowSpace</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>真正显示的space</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/itemShowLeading" title="itemShowLeading"></a>
	<h3 class="method-title"><code><a href="#//api/name/itemShowLeading">&nbsp;&nbsp;itemShowLeading</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>真正显示的最左边间距</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, assign, readonly) CGFloat itemShowLeading</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>真正显示的最左边间距</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/itemShowTrailing" title="itemShowTrailing"></a>
	<h3 class="method-title"><code><a href="#//api/name/itemShowTrailing">&nbsp;&nbsp;itemShowTrailing</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>真正显示的最右边的间距</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, assign, readonly) CGFloat itemShowTrailing</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>真正显示的最右边的间距</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/decorateViewFrameForIndex:withPercent:animationDurationBlock:" title="decorateViewFrameForIndex:withPercent:animationDurationBlock:"></a>
	<h3 class="method-title"><code><a href="#//api/name/decorateViewFrameForIndex:withPercent:animationDurationBlock:">&ndash;&nbsp;decorateViewFrameForIndex:withPercent:animationDurationBlock:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>获取对应index和百分比的装饰view的frame，子类可重写此方法返回对应的frame</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (CGRect)decorateViewFrameForIndex:(NSInteger)<em>index</em> withPercent:(CGFloat)<em>percent</em> animationDurationBlock:(void ( ^ __nullable ) ( CGFloat duration ))<em>animationDurationBlock</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>index</code></th>
						<td><p>索引</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>percent</code></th>
						<td><p>百分比</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>animationDurationBlock</code></th>
						<td><p>返回动画时长的block</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>CGRect</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>获取对应index和百分比的装饰view的frame，子类可重写此方法返回对应的frame</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/selectItemAtIndex:animated:" title="selectItemAtIndex:animated:"></a>
	<h3 class="method-title"><code><a href="#//api/name/selectItemAtIndex:animated:">&ndash;&nbsp;selectItemAtIndex:animated:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>根据索引选中某个item</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)selectItemAtIndex:(NSInteger)<em>index</em> animated:(BOOL)<em>animated</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>index</code></th>
						<td><p>索引</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>animated</code></th>
						<td><p>是否使用动画</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>根据索引选中某个item</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/selectItemAtIndex:withPercent:" title="selectItemAtIndex:withPercent:"></a>
	<h3 class="method-title"><code><a href="#//api/name/selectItemAtIndex:withPercent:">&ndash;&nbsp;selectItemAtIndex:withPercent:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>根据索引和百分比选择一个vc</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)selectItemAtIndex:(NSInteger)<em>index</em> withPercent:(CGFloat)<em>percent</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>index</code></th>
						<td><p>索引</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>percent</code></th>
						<td><p>百分比</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>根据索引和百分比选择一个vc</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/layoutItems" title="layoutItems"></a>
	<h3 class="method-title"><code><a href="#//api/name/layoutItems">&ndash;&nbsp;layoutItems</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>开始Item的布局，需调用此方法，才会计算item的布局</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)layoutItems</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>开始Item的布局，需调用此方法，才会计算item的布局</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFSegmentView.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2017 “Timeface”. All rights reserved. Updated: 2017-08-17</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>